﻿using Ewk.MachineLearning.Genetic.Programming.Program.Terminals;

namespace Ewk.MachineLearning.Genetic.Programming.Program
{
    /// <summary>
    /// The constant node represents a constant of the program.
    /// </summary>
    internal class ConstantNode : TerminalNode
    {
        public ConstantNode(Constant constant)
            : base(constant)
        {
        }

        #region Overrides of Node

        public override Node Clone()
        {
            // Since a ConstantNode has the same value during its lifetime, the same instance can be returned.
            return this;
        }

        #endregion
    }
}